import 'package:flutter_bilibili/pages/index_page.dart';
import 'package:flutter_bilibili/pages/login_page.dart';
import 'package:flutter_bilibili/pages/register_page.dart';
import 'package:flutter_bilibili/pages/video_detail_page.dart';
import 'package:flutter_bilibili/pages/welcome_page.dart';
import 'package:get/get.dart';

class AppPages {
  static final routes = [
    GetPage(
      name: '/index',
      page: () => const IndexPage(),
      // middlewares: [LoginMiddleware()],
    ),
    GetPage(
      name: '/welcome',
      page: () => const WelcomePage(),
    ),
    GetPage(
      name: '/login',
      page: () => const LoginPage(),
    ),
    GetPage(
      name: '/register',
      page: () => const RegisterPage(),
    ),
    GetPage(
      name: '/videoDetail',
      page: () => const VideoDetailPage(),
    ),
  ];
  static const defaultTransition = Transition.rightToLeft;
}
